<?php
/* @var $this UserController */
/* @var $model User */

$this->breadcrumbs=array(
  'Users'=>array('index'),
  'Manage',
);
?>

<section class="panel">
    <header class="panel-heading">
        <i class="icon-group"></i> Users列表
        <div class="pull-right ">
            <?php echo CHtml::link('<i class=\'icon-plus\'></i> 添加', array('create'), array('class' => 'btn btn-info'));?>        </div>
        <div class="clearfix"></div>
    </header>
</section>

<!--page start-->
<div class="adv-table">
<?php $this->widget('ext.EcloudWidget.EcloudWidget', array(
  'id'=>'user-grid',
    'dataProvider' => $model->search(),
//    'filter' => $model,
    'itemsCssClass' => 'display table table-bordered',
    'enableSorting' => false,
    'template' => "{items}{summary}{pager}",
    'summaryText' => '每页显示50条,共{count}条',
    'emptyText' => '没有数据',
    'enableHistory' => true,
    'pager' => array(
        'class' => 'CLinkPager',
        'header' => '',
        'nextPageLabel' => '下一页',
        'prevPageLabel' => '上一页',
        'firstPageLabel' => '首页',
        'lastPageLabel' => '尾页',
    ),
  'columns'=>array(
		    array(
        'header' => '序号',
        'value' => '($row+1)',
    ),
		'username',
		'password',
		'gw',
		'sex',
		'mobile',
		/*
		'tel',
		'csdate',
		'hj',
		'identity',
		'certificate',
		'specialty',
		'school',
		'bytime',
		'residece',
		'departmentid',
		'departmentname',
		'state',
		'leavetime',
		'lasttime',
		*/
    array(
      'class'=>'CButtonColumn',
      'header' => '操作', //指明头信息
      'template'=>"{view} {update} {delete}", 
      'deleteConfirmation'=>"js:'是否要删除?'",  //修改删除提示语句
    ),
  ),
)); ?>


</div>
<!--page end-->
